import cv2
import numpy as np

dog = cv2.imread('img/dog.jpg')

#翻转 0 上下翻转，1 左右翻转，-1 上下左右翻转
new = cv2.flip(dog, 0)
new1 = cv2.flip(dog, 1)
new2 = cv2.flip(dog, -1)


cv2.imshow('dog', dog)
cv2.imshow('new', new)
cv2.imshow('new1', new1)
cv2.imshow('new2', new2)
cv2.waitKey(0)
